package org.gitman.agent.platform;

import java.awt.Color;

import org.gitman.agent.gui.AddAgentDialog;

import com.mxgraph.model.mxCell;

public class AddedAgentInfo {
	private Color color;
	private mxCell startPoint;
	private mxCell endPoint;
	private AddAgentDialog dialog;
	

	public Color getColor() {
		return color;
	}
	public void setColor(Color color) {
		this.color = color;
	}
	public mxCell getStartPoint() {
		return startPoint;
	}
	public void setStartPoint(mxCell startPoint) {
		this.startPoint = startPoint;
		dialog.setStartpoinID((String) startPoint.getValue());
	}
	public mxCell getEndPoint() {
		return endPoint;
	}
	public void setEndPoint(mxCell endPoint) {
		this.endPoint = endPoint;
		dialog.setEndpointID((String) endPoint.getValue());
	}
	public void setAddAgentDialog(AddAgentDialog dialog){
		this.dialog = dialog;
	}
	public boolean canSelectPoints(){
		return dialog.isVisible();
	}

}
